<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
        }

        .box {
            width: 300px;
            height: 300px;
            background-color: aqua;
            margin-left: 100px;
            margin-top: 100px;
        }
    </style>
</head>

<body>
    <div class="box"></div>
    <script>
        let box = document.querySelector(".box");
        box.onclick = function (e) {
            console.log("clientX-:"+e.clientX);
            console.log("clientY-:"+e.clientY);

            console.log("offsetX-:"+e.offsetX);
            console.log("offsetY-:"+e.offsetY);

            console.log("screenX-:"+e.screenX);
            console.log("screenY-:"+e.screenY);

            console.log("pageX-:"+e.pageX);
            console.log("pageY-:"+e.pageY);
            
            
            
        }
    </script>
</body>

</html>